using System;
using System.IO;
using System.Xml;
namespace AppToolKit.Core.Utils
{
	public class XmlManager
	{
		public static string GetNodeValue(string fileName, string nodePath)
		{
			XmlDocument xmlDocument = new XmlDocument();
			if (File.Exists(fileName))
			{
				xmlDocument.Load(fileName);
				return xmlDocument.SelectSingleNode(nodePath).InnerXml;
			}
			throw new Exception("File not exists!");
		}
	}
}
